package com.thiswhyme.demo.logback.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: thiswhyme
 * @date: 2021/6/8
 */
@Slf4j
@RestController
@RequestMapping("/test/")
public class DemoController {

    @GetMapping("test")
    public String test() {
        log.info("============main");

        new Thread(() -> {
            log.info("============thread1");
        }).start();

        new Thread(() -> {
            log.info("============thread2");
        }).start();

        return "666";
    }
}
